import React, { Component } from 'react';
class lyhsscc extends Component {
  constructor(props) {
    super(props);
    this.state = {  }
  }
  render() { 
    // HashRouter 模式下 state传参刷新后获取不到
    console.log(this.props.location) 
    return ( 
      <div>参数：{this.props.location.state?this.props.location.state.name:''}</div>
    );
  }
}
 
export default lyhsscc;